from flask import Blueprint
from . import view

category_blueprint = Blueprint('category', __name__)

# 添加分类
category_blueprint.add_url_rule(rule='/add', methods=['POST'], view_func=view.add)

# 分类列表
category_blueprint.add_url_rule(rule='/list', methods=['GET'], view_func=view.Category_list)

# 分类详情
category_blueprint.add_url_rule(rule='/detail', methods=['GET'], view_func=view.detail)

# 分类更新
category_blueprint.add_url_rule(rule='/update', methods=['PUT'], view_func=view.update)

# 分类删除
category_blueprint.add_url_rule(rule='/delete', methods=['DELETE'], view_func=view.delete)
